export const clientTypes = {
  'all': {
    title: '全部客户',
    reqUrl: 'crm/web/clientele/page',
    queryPropsParams: { curTab: '1' },
    searchItems: [
      {
        key: 'queryKey',
        label: '查询字段',
        type: 'select',
        fieldProps: {
          options: [
            { id: 'name', name: '客户姓名' },
            { id: 'staffName', name: '负责人' },
            { id: 'childName', name: '孩子姓名' },
            { id: 'mobile', name: '客户电话' },
            { id: 'monthAge', name: '月龄' }
          ],
          style: {
            width: '136px'
          }
        }
      },
      {
        key: 'queryVal',
        label: '查询内容',
        fieldProps: {
          style: {
            width: '156px'
          }
        }
      },
      {
        key: 'status',
        label: '跟进状态',
        type: 'select',
        fieldProps: {
          dictKey: 'clientStatus',
          style: {
            width: '126px'
          }
        }
      },
      {
        key: 'signStatus',
        label: '成交状态',
        type: 'select',
        fieldProps: {
          dictKey: 'clientStatus',
          options: [
            { id: '1', name: '已成交' },
            { id: '0', name: '未成交' }
          ],
          style: {
            width: '100px'
          }
        }
      }
    ],
    column: [
      {
        prop: 'childName',
        label: '孩子姓名'
      },
      {
        prop: 'birthday',
        label: '出生日期'
      },
      {
        prop: 'month',
        label: '月龄'
      },
      {
        prop: 'name',
        label: '家长姓名'
      },
      {
        prop: 'mobile',
        label: '电话'
      },
      {
        prop: 'staffName',
        label: '负责人'
      },
      {
        prop: 'status',
        label: '跟进状态'
      },
      {
        prop: 'lastFollowRecord',
        label: '最新跟进记录'
      },
      {
        prop: 'action',
        label: '操作'
      }
    ]
  },
  'continueContract': {
    title: '待续约客户',
    reqUrl: 'crm/web/clientele/continue_clientele_page',
    queryPropsParams: { curTab: '2', continueKey: 'ck' },
    searchItems: [],
    column: [
      {
        prop: 'childName',
        label: '孩子姓名'
      },
      {
        prop: 'birthday',
        label: '月龄'
      },
      {
        prop: 'name',
        label: '家长姓名'
      },
      {
        prop: 'mobile',
        label: '电话'
      },
      {
        prop: 'staffName',
        label: '负责人'
      },
      {
        prop: 'purchasedProduct',
        label: '已购产品'
      },
      {
        prop: 'remainCount',
        label: '剩余数量'
      },
      {
        prop: 'lastPurchasedProductName',
        label: '上次购买'
      },
      {
        prop: 'action',
        label: '操作'
      }
    ]
  },
  'continueMoney': {
    title: '待补款客户',
    reqUrl: 'crm/web/clientele/page',
    queryPropsParams: { curTab: '3', continueFillMoneyKey: 'cfm' },
    searchItems: [
      {
        key: 'queryKey',
        label: '查询字段',
        type: 'select',
        fieldProps: {
          options: [
            { id: 'name', name: '客户姓名' },
            { id: 'staffName', name: '负责人' },
            { id: 'childName', name: '孩子姓名' },
            { id: 'mobile', name: '客户电话' },
            { id: 'monthAge', name: '月龄' }
          ],
          style: {
            width: '136px'
          }
        }
      },
      {
        key: 'queryVal',
        label: '查询内容',
        fieldProps: {
          style: {
            width: '156px'
          }
        }
      }
    ],
    column: [
      {
        prop: 'childName',
        label: '孩子姓名'
      },
      {
        prop: 'birthday',
        label: '月龄'
      },
      {
        prop: 'name',
        label: '家长姓名'
      },
      {
        prop: 'mobile',
        label: '电话'
      },
      {
        prop: 'staffName',
        label: '负责人'
      },
      {
        prop: 'status',
        label: '跟进状态'
      },
      {
        prop: 'lastFollowRecord',
        label: '最新跟进记录'
      },
      {
        prop: 'action',
        label: '操作'
      }
    ]
  }
}

export const contractColumn = [
  {
    prop: 'name',
    label: '账单名称'
  },
  {
    prop: 'code',
    label: '账单编号'
  },
  {
    prop: 'clienteleName',
    label: '学生'
  },
  {
    prop: 'totalAmount',
    label: '金额'
  },
  {
    prop: 'payStatus',
    label: '状态'
  },
  {
    prop: 'action',
    label: '操作'
  }
]

export const payStatusList = [
  { id: '', name: '全部', type: 'warning' },
  { id: '0', name: '未支付', type: 'danger' },
  { id: '1', name: '已支付', type: 'success' }
]
